home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 2.0 KB | 87 lines | [TEXT/MPS ] |
- // UContainer.h
- // Copyright © 1995-96 by Apple Computer, Inc. All rights reserved.
-
- #ifndef __UCONTAINER__
- #define __UCONTAINER__
-
- // MacApp
-
- #ifndef __MACONDITIONALMACROS__
- #include "MAConditionalMacros.h"
- #endif
-
- #ifndef __UFAILURE__
- #include "UFailure.h"
- #endif
-
- #if qContainer
-
- // CALib
-
- #ifndef _CADEFS_
- #include "CADefs.h"
- #endif
-
- // Toolbox
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- #ifndef __WINDOWS__
- #include <Windows.h>
- #endif
-
- //----------------------------------------------------------------------------------------
- // Forward and external declarations
- //----------------------------------------------------------------------------------------
-
- class TWindow;
-
- //----------------------------------------------------------------------------------------
- // Global constants declarations. Build options.
- //----------------------------------------------------------------------------------------
-
- //----------------------------------------------------------------------------------------
- // Global functions.
- //----------------------------------------------------------------------------------------
-
- Boolean HasContainerLib();
- void InstallContainerLib();
-
- WindowPtr MA_CAFrontWindowProc(CAWindowLayer windowLayer);
- void MA_CAInitMenus();
- CADocumentRef GetCADocument(WindowPtr wMgrWindow);
- CADocumentRef GetCADocument(TWindow* window);
-
- //========================================================================================
- // CLASS CModalFocus
- //========================================================================================
-
- class CModalFocus
- {
- protected:
- FailInfo fFailInfo;
- WindowPtr fWindow;
- Boolean fHasFocus;
-
- public:
- CModalFocus(WindowPtr window);
- ~CModalFocus();
-
- Boolean Request();
- OSErr Relinquish();
-
- private:
- static void CallRelinquish(void* context);
- };
-
- //----------------------------------------------------------------------------------------
- // Global variables.
- //----------------------------------------------------------------------------------------
-
- extern Boolean gContainerLib;
-
- #endif // qContainer
- #endif // __UCONTAINER__
-